<?php


namespace App\Models\Base;

use App\Models\BaseModel;

class CategoryModel extends BaseModel
{
    public $table = 'category';
    public $fillable = [
        'parent_id', //int NOT NULL DEFAULT '0' COMMENT '父级id',
        'name', //varchar(64) CHARACTER SET  NOT NULL DEFAULT '' COMMENT '品牌名',
        'ids_url', //json NOT NULL COMMENT '当前ids路径',
//        'create_time', //datetime DEFAULT NULL COMMENT '创建时间',
//        'update_time', //datetime DEFAULT NULL COMMENT '更新时间',
        'create_user', //varchar(64) CHARACTER SET  NOT NULL DEFAULT '' COMMENT '创建者',
        'create_user_uuid', //varchar(64) CHARACTER SET  NOT NULL DEFAULT '' COMMENT '创建者uuid',
        'status', //tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态 1=正常 2=禁用',
        'sort', //int NOT NULL DEFAULT '1' COMMENT '排序',
        'shop_id', //int NOT NULL DEFAULT '1' COMMENT '商店id',
    ];

    public $casts = [
        'ids_url' => 'array'
    ];
}
